package com.kkks.spring_rest.tick.model;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.MappedSuperclass;

/**
 * AbstractWhoGetElementRule entity provides the base persistence definition of
 * the WhoGetElementRule entity. @author MyEclipse Persistence Tools
 */
@MappedSuperclass
public abstract class AbstractWhoGetElementRule implements java.io.Serializable {

	// Fields

	private Integer ruleId;
	private String ruleName;
	private Boolean elementId;
	private String ruleFieldname;
	private String fieldTableName;
	private Integer fieldMinValues;
	private Integer fieldMaxValues;
	private Integer elementNum;
	private Integer adminId;
	private Integer ruleAddTime;

	// Constructors

	/** default constructor */
	public AbstractWhoGetElementRule() {
	}

	/** full constructor */
	public AbstractWhoGetElementRule(String ruleName, Boolean elementId,
			String ruleFieldname, String fieldTableName,
			Integer fieldMinValues, Integer fieldMaxValues, Integer elementNum,
			Integer adminId, Integer ruleAddTime) {
		this.ruleName = ruleName;
		this.elementId = elementId;
		this.ruleFieldname = ruleFieldname;
		this.fieldTableName = fieldTableName;
		this.fieldMinValues = fieldMinValues;
		this.fieldMaxValues = fieldMaxValues;
		this.elementNum = elementNum;
		this.adminId = adminId;
		this.ruleAddTime = ruleAddTime;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "rule_id", unique = true, nullable = false)
	public Integer getRuleId() {
		return this.ruleId;
	}

	public void setRuleId(Integer ruleId) {
		this.ruleId = ruleId;
	}

	@Column(name = "rule_name", nullable = false, length = 64)
	public String getRuleName() {
		return this.ruleName;
	}

	public void setRuleName(String ruleName) {
		this.ruleName = ruleName;
	}

	@Column(name = "element_id", nullable = false)
	public Boolean getElementId() {
		return this.elementId;
	}

	public void setElementId(Boolean elementId) {
		this.elementId = elementId;
	}

	@Column(name = "rule_fieldname", nullable = false, length = 32)
	public String getRuleFieldname() {
		return this.ruleFieldname;
	}

	public void setRuleFieldname(String ruleFieldname) {
		this.ruleFieldname = ruleFieldname;
	}

	@Column(name = "field_table_name", nullable = false, length = 16)
	public String getFieldTableName() {
		return this.fieldTableName;
	}

	public void setFieldTableName(String fieldTableName) {
		this.fieldTableName = fieldTableName;
	}

	@Column(name = "field_min_values", nullable = false)
	public Integer getFieldMinValues() {
		return this.fieldMinValues;
	}

	public void setFieldMinValues(Integer fieldMinValues) {
		this.fieldMinValues = fieldMinValues;
	}

	@Column(name = "field_max_values", nullable = false)
	public Integer getFieldMaxValues() {
		return this.fieldMaxValues;
	}

	public void setFieldMaxValues(Integer fieldMaxValues) {
		this.fieldMaxValues = fieldMaxValues;
	}

	@Column(name = "element_num", nullable = false)
	public Integer getElementNum() {
		return this.elementNum;
	}

	public void setElementNum(Integer elementNum) {
		this.elementNum = elementNum;
	}

	@Column(name = "admin_id", nullable = false)
	public Integer getAdminId() {
		return this.adminId;
	}

	public void setAdminId(Integer adminId) {
		this.adminId = adminId;
	}

	@Column(name = "rule_add_time", nullable = false)
	public Integer getRuleAddTime() {
		return this.ruleAddTime;
	}

	public void setRuleAddTime(Integer ruleAddTime) {
		this.ruleAddTime = ruleAddTime;
	}

}